package mj.scott.back.question.service.impl;

import lombok.extern.slf4j.Slf4j;
import mj.scott.back.question.mapper.QuestionMapper;
import mj.scott.back.question.pojo.dto.QuestionQuery;
import mj.scott.back.question.pojo.vo.QuestionVO;
import mj.scott.back.question.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
public class QuestionServiceImpl implements QuestionService {
    @Autowired
    QuestionMapper questionMapper;
    @Override
    public List select(QuestionQuery query) {
        log.debug("【业务层】【查询题目列表】{}", query);
        List<QuestionVO> vo = questionMapper.select(query);
        return vo;
    }
}
